package com.probox.common.entity.domain.platfom;

import java.math.BigDecimal;
import java.io.Serializable;

import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import com.baomidou.mybatisplus.annotation.*;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.probox.common.core.annotation.Excel;

/**
 * 平台邮费设置对象 platform_freight
 *
 * @author usoft
 * @date 2021-06-28
 */
@Data
@Accessors(chain = true)
@TableName("platform_freight")
public class PlatformFreight implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 邮费UID
     */
    //默认主键自增
    @TableId(value = "FREIGHT_UID", type = IdType.AUTO)
    private Long freightUid;
    /**
     * 邮费模板UID
     */
    @Excel(name = "邮费模板UID")
    private Long moudleUid;

    /**
     * 起始金额
     */
    private BigDecimal moudleAmount;

    /**
     * 省名
     */
    @Excel(name = "省名")
    private String freightProvince;
    /**
     * 邮费类型  1 代表包邮 2代表不包邮 3代表不配送
     */
    @Excel(name = "邮费类型  1 代表包邮 2代表不包邮 3代表不配送")
    private String freightType;
    /**
     * 满足起始条件的费用
     */
    @Excel(name = "满足起始条件的费用")
    private BigDecimal freightFate;
    /**
     * 不满足起始条件的运费
     */
    @Excel(name = "不满足起始条件的运费")
    private BigDecimal freightInitFate;
    /**
     * 店铺ID
     */
    @Excel(name = "店铺ID")
    private Long platformUid;

    private String dataStatus;

    public PlatformFreight() {
    }

    public PlatformFreight(Long moudleUid, BigDecimal moudleAmount,String freightProvince, String freightType, BigDecimal freightFate, BigDecimal freightInitFate, Long platformUid,String dataStatus) {
        this.moudleUid = moudleUid;
        this.moudleAmount = moudleAmount;
        this.freightProvince = freightProvince;
        this.freightType = freightType;
        this.freightFate = freightFate;
        this.freightInitFate = freightInitFate;
        this.platformUid = platformUid;
        this.dataStatus = dataStatus;
    }
}
